package run
 
import (
	. "nightowl/model"
	"fmt"
	// "encoding/json"
	// "time"
    "io/ioutil"
    "gopkg.in/yaml.v2"
)

func GetDeliveryInfo() (d Delivery){
	yamlFile, err := ioutil.ReadFile("/opt/tmp/delivery.yaml")
    if err != nil {
        fmt.Println("error: %v", err)
        return
    }
    if err := yaml.Unmarshal(yamlFile, &d); err != nil {
        fmt.Println("error: %v", err)
    } 
    return
}